FileDelete

 

The 'FileDelete' function deletes the specified file.

 

int  FileDelete(string file_name);

 

Parameters

string file_name : file name including the absolute path

 

Return Value

result (1 = success, 0 = fail)

 

Example

result = @FileDelete("C:\\TEXT1.TXT");

if(result == 1)

{

@Message("The file deletion success");

}

else

{

@Message("The file deletion fail");

}

Description : The first line deletes 'C:\\TEXT1.TXT' and stores the result in the variable named 'result'. If 'result' is '1', 'The file deletion success' message will be displayed on the screen. If 'result' is '0', 'The file deletion fail' message will be displayed on the screen.